import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const orgDimColumns = [
    {
        title: "名称",
        dataIndex: "name",
    },
    {
        title: "别名",
        dataIndex: "aliasName",
    },
    {
        title: "默认主组织",
        dataIndex: "dimDefault",
        scopedSlots: { customRender: "dimDefault" },
    },
    {
        title: "创建人",
        dataIndex: "createUser",
    },
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    },
    {
        align: 'center',
        width:'160px',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];
 
export const addOrgDim = (parameter) => post('api/sysOrganizeDimension/addOrgDim', parameter)
export const deleteOrgDim = (parameter) => post('api/sysOrganizeDimension/deleteOrgDim', parameter)
export const updateOrgDim = (parameter) => put('api/sysOrganizeDimension/updateOrgDim', parameter)
export const queryOrgDim = (parameter) => get('api/sysOrganizeDimension/queryOrgDim', parameter)
export const getOrgDim = (parameter) => get('api/sysOrganizeDimension/getOrgDim', parameter)
export const queryOrgDimSelect = (parameter) => get('api/sysOrganizeDimension/queryOrgDimSelect', parameter)
